package com.startdima.user.infrastructure.exception;

public class BusinessException extends RuntimeException  {

	private static final long serialVersionUID = 6660951947214479833L;
	
	private int code;
    private String message;
 
    public int getCode() {
        return code;
    }
 
    public void setCode(int code) {
        this.code = code;
    }
 
    @Override
    public String getMessage() {
        return message;
    }
 
    public void setMessage(String message) {
        this.message = message;
    }
 
    public BusinessException(String message){
        super();
        this.code = 500;
        this.message = message;
    }
    
    public BusinessException(Integer code, String message){
        super();
        this.code = code;
        this.message = message;
    }
    
}